#ifndef _OPENMV_H_
#define _OPENMV_H_

#include "STMFCT.h"
#include "UART.h"
#include "OLED.h"

typedef struct OPENMV
{
    int8_t xa;
    int8_t xb;
    double theta;
    uint8_t region1;
    uint8_t turnflag;
} OPENMVDataStruct;

extern OPENMVDataStruct OPENMV;
extern bool openmv_exist;

void OPENMV_init(USART_TypeDef *USARTx, uint32_t baud);
bool OPENMV_sendByte(const uint8_t byte);
bool OPENMV_sendString(uint8_t *str);
bool OPENMV_receiveString(uint8_t **str);
bool OPENMV_unZip(uint8_t *str);

#endif
